#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <assert.h>
char* my_strcat(char* dest, const char* src,size_t num)
{
	assert(dest && src);
	char* ret = dest;
	while (*dest)
	{
		dest++;
	}
	
		while (num!=0)
		{
			*dest++ = *src++;
			num--;
		}
	
	
	return ret;
}
int main()
{
	char arr1[30] = "hello";
	char arr2[] = "world";
	size_t n = 4;
	printf("%s\n", my_strcat(arr1, arr2,n));
	return 0;
}